home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 41 / Amiga Format CD41 (1999-06)(Future Publishing)(GB)[!][issue 1999-07].iso / -seriously_amiga- / misc / g5library / gatewaybase / gatewaybase.c
C/C++ Source or Header  |  1999-04-19  |  586b  |  33 lines

  1. /* GatewayBase.c (c) 1998,1999 by Michaela Prüß */
  2.  
  3. #include <stdio.h>
  4. #include <stdlib.h>
  5. #include <string.h>
  6. #include <ctype.h>
  7. #include <signal.h>
  8. #include <exec/types.h>
  9. #include <math.h>
  10. #include <time.h>
  11.  
  12. #include "gateway_lib.h"
  13. #include "gateway_protos.h"
  14.  
  15. struct    Library    *GatewayBase    =    NULL;
  16.  
  17. void Open_GatewayBase()
  18. {
  19.     GatewayBase = (APTR)OpenLibrary(GATELIBNAME, GATELIB_VERSION);
  20.  
  21.     if (!GatewayBase)
  22.     {
  23.         printf("\n%s V %d nicht gestartet!\n", GATELIBNAME, GATELIB_VERSION);
  24.         exit(20);
  25.     }
  26.  
  27. }
  28.  
  29. void Close_GatewayBase()
  30. {
  31.     if (GatewayBase)    CloseLibrary((APTR)GatewayBase);
  32. }
  33.